/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CreateAppointmentPanel.java
 *
 * Created on Jul 12, 2011, 7:04:19 PM
 */
package panels;

import conn.EMIS4Connection;
import dao.AppointmentDao;
import dao.ClinicDao;
import dao.LoginDao;
import java.sql.SQLException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import obj.Appointment;
import obj.Clinic;
import obj.Login;
import obj.Person;
import util.LoggedInUser;

/**
 *
 * @author nknowles
 */
public class CreateAppointmentPanel extends javax.swing.JPanel {

  private static CreateAppointmentPanel instance;
  private Appointment appointment;
  private AppointmentDao appointmentDAO;
  private Clinic clinic;
  private ClinicDao clinicDAO;
  private List<Clinic> clinicList;
  private List<Person> doctorList;
  private Login login;
  private LoginDao loginDAO;
  private int userID;
  private EMIS4Connection conn = EMIS4Connection.getInstance();
  private LoggedInUser loggedInUser = LoggedInUser.getInstance();

  public static CreateAppointmentPanel getInstance() {
    if (instance == null) {
      instance = new CreateAppointmentPanel();
    }
    return instance;
  }

  /** Creates new form CreateAppointmentPanel */
  public CreateAppointmentPanel() {
    initComponents();
    appointment = new Appointment();
    appointmentDAO = new AppointmentDao();
    clinic = new Clinic();
    clinicDAO = new ClinicDao();
    login = new Login();
    loginDAO = new LoginDao();
    userID = loggedInUser.getUserID();

    util.AppointmentUtil.setClinic(clinicComboBox);
    util.AppointmentUtil.setDateTime(yearComboBox, monthComboBox, dayComboBox, timeComboBox, ampmComboBox, dayLabel);
    doctorList = util.AppointmentUtil.fillDoctors(doctorComboBox);
    patientIDField.setText(String.valueOf(userID));
    patientIDField.setFocusable(false);
    usernameField.setEnabled(false);
  }

  /** This method is called from within the constructor to
   * initialize the form.
   * WARNING: Do NOT modify this code. The content of this method is
   * always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    clinicComboBox = new javax.swing.JComboBox();
    yearComboBox = new javax.swing.JComboBox();
    monthComboBox = new javax.swing.JComboBox();
    dayComboBox = new javax.swing.JComboBox();
    timeComboBox = new javax.swing.JComboBox();
    ampmComboBox = new javax.swing.JComboBox();
    jScrollPane1 = new javax.swing.JScrollPane();
    reasonField = new javax.swing.JTextArea();
    symptomsField = new javax.swing.JTextField();
    medsField = new javax.swing.JTextField();
    patientIDField = new javax.swing.JTextField();
    submitButton = new javax.swing.JButton();
    jLabel1 = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jLabel5 = new javax.swing.JLabel();
    jLabel6 = new javax.swing.JLabel();
    jLabel7 = new javax.swing.JLabel();
    jLabel11 = new javax.swing.JLabel();
    jLabel12 = new javax.swing.JLabel();
    jLabel4 = new javax.swing.JLabel();
    usernameField = new javax.swing.JTextField();
    dayLabel = new javax.swing.JLabel();
    jLabel8 = new javax.swing.JLabel();
    doctorComboBox = new javax.swing.JComboBox();

    setMinimumSize(new java.awt.Dimension(361, 390));
    setLayout(new java.awt.GridBagLayout());

    clinicComboBox.setFont(new java.awt.Font("Tahoma", 0, 12));
    clinicComboBox.setName("clinicComboBox"); // NOI18N
    clinicComboBox.setNextFocusableComponent(yearComboBox);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 0);
    add(clinicComboBox, gridBagConstraints);

    yearComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "2011", "2012" }));
    yearComboBox.setName("yearComboBox"); // NOI18N
    yearComboBox.setNextFocusableComponent(monthComboBox);
    yearComboBox.addItemListener(new java.awt.event.ItemListener() {
      public void itemStateChanged(java.awt.event.ItemEvent evt) {
        yearComboBoxItemStateChanged(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 0);
    add(yearComboBox, gridBagConstraints);

    monthComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }));
    monthComboBox.setName("monthComboBox"); // NOI18N
    monthComboBox.setNextFocusableComponent(dayComboBox);
    monthComboBox.addItemListener(new java.awt.event.ItemListener() {
      public void itemStateChanged(java.awt.event.ItemEvent evt) {
        monthComboBoxItemStateChanged(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 0);
    add(monthComboBox, gridBagConstraints);

    dayComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31" }));
    dayComboBox.setName("dayComboBox"); // NOI18N
    dayComboBox.setNextFocusableComponent(timeComboBox);
    dayComboBox.addItemListener(new java.awt.event.ItemListener() {
      public void itemStateChanged(java.awt.event.ItemEvent evt) {
        dayComboBoxItemStateChanged(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 0);
    add(dayComboBox, gridBagConstraints);

    timeComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "12:00", "12:30", "1:00", "1:30", "2:00", "2:30", "3:00", "3:30", "4:00", "4:30", "5:00", "5:30", "6:00", "6:30", "7:00", "7:30", "8:00", "8:30", "9:00", "9:30", "10:00", "10:30", "11:00", "11:30" }));
    timeComboBox.setName("timeComboBox"); // NOI18N
    timeComboBox.setNextFocusableComponent(ampmComboBox);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 4;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.FIRST_LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 0);
    add(timeComboBox, gridBagConstraints);

    ampmComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "AM", "PM" }));
    ampmComboBox.setName("ampmComboBox"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 0);
    add(ampmComboBox, gridBagConstraints);

    jScrollPane1.setName("jScrollPane1"); // NOI18N

    reasonField.setColumns(20);
    reasonField.setRows(5);
    reasonField.setName("reasonField"); // NOI18N
    reasonField.setNextFocusableComponent(symptomsField);
    jScrollPane1.setViewportView(reasonField);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 140;
    gridBagConstraints.ipady = 70;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 10);
    add(jScrollPane1, gridBagConstraints);

    symptomsField.setFont(new java.awt.Font("Tahoma", 0, 12));
    symptomsField.setName("symptomsField"); // NOI18N
    symptomsField.setNextFocusableComponent(medsField);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 10);
    add(symptomsField, gridBagConstraints);

    medsField.setFont(new java.awt.Font("Tahoma", 0, 12));
    medsField.setName("medsField"); // NOI18N
    medsField.setNextFocusableComponent(patientIDField);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 10);
    add(medsField, gridBagConstraints);

    patientIDField.setFont(new java.awt.Font("Tahoma", 0, 12));
    patientIDField.setName("patientIDField"); // NOI18N
    patientIDField.setNextFocusableComponent(submitButton);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.ipadx = 100;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 10);
    add(patientIDField, gridBagConstraints);

    submitButton.setText("Submit");
    submitButton.setName("submitButton"); // NOI18N
    submitButton.setNextFocusableComponent(clinicComboBox);
    submitButton.addActionListener(new java.awt.event.ActionListener() {
      public void actionPerformed(java.awt.event.ActionEvent evt) {
        submitButtonActionPerformed(evt);
      }
    });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 9;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(15, 0, 10, 20);
    add(submitButton, gridBagConstraints);

    jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24));
    jLabel1.setText("Member Create Appointment");
    jLabel1.setName("jLabel1"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 6;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(10, 25, 7, 10);
    add(jLabel1, gridBagConstraints);

    jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel2.setText("Clinic:");
    jLabel2.setName("jLabel2"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(3, 15, 3, 0);
    add(jLabel2, gridBagConstraints);

    jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel3.setText("Date:");
    jLabel3.setName("jLabel3"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(3, 15, 3, 0);
    add(jLabel3, gridBagConstraints);

    jLabel5.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel5.setText("Visit Reason:");
    jLabel5.setName("jLabel5"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHEAST;
    gridBagConstraints.insets = new java.awt.Insets(6, 15, 0, 0);
    add(jLabel5, gridBagConstraints);

    jLabel6.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel6.setText("Symptoms:");
    jLabel6.setName("jLabel6"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 5;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(3, 15, 3, 0);
    add(jLabel6, gridBagConstraints);

    jLabel7.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel7.setText("Doctor:");
    jLabel7.setName("jLabel7"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(3, 15, 3, 0);
    add(jLabel7, gridBagConstraints);

    jLabel11.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel11.setText("Medication:");
    jLabel11.setName("jLabel11"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 6;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(3, 15, 3, 0);
    add(jLabel11, gridBagConstraints);

    jLabel12.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel12.setText("Patient ID:");
    jLabel12.setName("jLabel12"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
    gridBagConstraints.insets = new java.awt.Insets(3, 15, 3, 0);
    add(jLabel12, gridBagConstraints);

    jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12));
    jLabel4.setText("Username:");
    jLabel4.setName("jLabel4"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    gridBagConstraints.insets = new java.awt.Insets(3, 15, 3, 0);
    add(jLabel4, gridBagConstraints);

    usernameField.setName("usernameField"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 8;
    gridBagConstraints.gridwidth = 5;
    gridBagConstraints.ipadx = 100;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 10);
    add(usernameField, gridBagConstraints);

    dayLabel.setText("day");
    dayLabel.setName("dayLabel"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 5;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(3, 55, 3, 10);
    add(dayLabel, gridBagConstraints);

    jLabel8.setText("or");
    jLabel8.setName("jLabel8"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 7;
    gridBagConstraints.gridheight = 2;
    add(jLabel8, gridBagConstraints);

    doctorComboBox.setName("doctorComboBox"); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.gridwidth = 4;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
    gridBagConstraints.insets = new java.awt.Insets(3, 4, 3, 0);
    add(doctorComboBox, gridBagConstraints);
  }// </editor-fold>//GEN-END:initComponents

    private void submitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_submitButtonActionPerformed
      // TODO add handling code for SUBMIT button
      // appointment
      appointment.setClinicID(clinicComboBox.getSelectedIndex());
      String date = util.AppointmentUtil.makeDateString(yearComboBox.getSelectedIndex(), monthComboBox.getSelectedIndex(), dayComboBox.getSelectedIndex(), timeComboBox.getSelectedIndex(), ampmComboBox.getSelectedIndex());
      System.out.println(date);
      appointment.setScheduledDate(util.AppointmentUtil.makeSqlDate(date.toString()));
      appointment.setDoctorID(doctorList.get(doctorComboBox.getSelectedIndex()).getPersonID());
      appointment.setVisitReason(reasonField.getText());
      appointment.setSymptoms(symptomsField.getText());
      appointment.setCurrentMedications(medsField.getText());
      appointment.setDiagnosis(" ");
    try {
      conn.connect();
      appointmentDAO.create(conn.getConnection(), appointment);
    } catch (SQLException ex) {
      Logger.getLogger(CreateAppointmentPanel.class.getName()).log(Level.SEVERE, null, ex);
    }

    }//GEN-LAST:event_submitButtonActionPerformed

    private void yearComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_yearComboBoxItemStateChanged
      // TODO add your handling code here:
      util.AppointmentUtil.setCal(yearComboBox.getSelectedIndex(), monthComboBox.getSelectedIndex(), dayComboBox.getSelectedIndex() + 1);
      dayLabel.setText(util.AppointmentUtil.currentDay());
    }//GEN-LAST:event_yearComboBoxItemStateChanged

    private void monthComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_monthComboBoxItemStateChanged
      /*
       * Whenever this box loses focus it will change the number of days displayed
       * in the DAY box to match the month selected.
       */

      ComboBoxModel d28 = new DefaultComboBoxModel(new String[]{"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28"});
      ComboBoxModel d29 = new DefaultComboBoxModel(new String[]{"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29"});
      ComboBoxModel d30 = new DefaultComboBoxModel(new String[]{"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30"});
      ComboBoxModel d31 = new DefaultComboBoxModel(new String[]{"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"});

      int year = Integer.valueOf((String) yearComboBox.getSelectedItem());
      switch (monthComboBox.getSelectedIndex() + 1) {
        case 1:
        case 3:
        case 5:
        case 7:
        case 8:
        case 10:
        case 12:
          dayComboBox.setModel(d31);
          break;
        case 4:
        case 6:
        case 9:
        case 11:
          dayComboBox.setModel(d30);
          break;
        case 2:
          if (((year % 4 == 0) && !(year % 100 == 0)) || (year % 400 == 0)) {
            dayComboBox.setModel(d29);
          } else {
            dayComboBox.setModel(d28);
          }
      }
      util.AppointmentUtil.setCal(yearComboBox.getSelectedIndex(), monthComboBox.getSelectedIndex(), dayComboBox.getSelectedIndex() + 1);
      dayLabel.setText(util.AppointmentUtil.currentDay());
    }//GEN-LAST:event_monthComboBoxItemStateChanged

    private void dayComboBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_dayComboBoxItemStateChanged
      // TODO add your handling code here:
      util.AppointmentUtil.setCal(yearComboBox.getSelectedIndex(), monthComboBox.getSelectedIndex(), dayComboBox.getSelectedIndex() + 1);
      dayLabel.setText(util.AppointmentUtil.currentDay());
    }//GEN-LAST:event_dayComboBoxItemStateChanged
  // Variables declaration - do not modify//GEN-BEGIN:variables
  private javax.swing.JComboBox ampmComboBox;
  private javax.swing.JComboBox clinicComboBox;
  private javax.swing.JComboBox dayComboBox;
  private javax.swing.JLabel dayLabel;
  private javax.swing.JComboBox doctorComboBox;
  private javax.swing.JLabel jLabel1;
  private javax.swing.JLabel jLabel11;
  private javax.swing.JLabel jLabel12;
  private javax.swing.JLabel jLabel2;
  private javax.swing.JLabel jLabel3;
  private javax.swing.JLabel jLabel4;
  private javax.swing.JLabel jLabel5;
  private javax.swing.JLabel jLabel6;
  private javax.swing.JLabel jLabel7;
  private javax.swing.JLabel jLabel8;
  private javax.swing.JScrollPane jScrollPane1;
  private javax.swing.JTextField medsField;
  private javax.swing.JComboBox monthComboBox;
  private javax.swing.JTextField patientIDField;
  private javax.swing.JTextArea reasonField;
  private javax.swing.JButton submitButton;
  private javax.swing.JTextField symptomsField;
  private javax.swing.JComboBox timeComboBox;
  private javax.swing.JTextField usernameField;
  private javax.swing.JComboBox yearComboBox;
  // End of variables declaration//GEN-END:variables
}
